<div class="page-header">
	<ul id="table-tab" class="nav nav-tabs" role="tablist">
		<li role="presentation" class="active"><a href="#cardRule-tab"
			aria-controls="cardRule-tab" role="tab" data-toggle="tab">卡规则管理</a>
		</li>
	</ul>
</div>
<div class="tab-content">
	<div id="cardRule-tab" class="tab-pane active" role="tabpanel">
		<div class="row">
            <!--搜索域-->
            <div class="col-xs-12">
            	<div class="search-area">
            		<form id="table-cardRule-search" class="form-inline">
                        <div class="form-group">
                            <label for="cardRule-name">规则名称：</label>
                            <input type="text" class="form-control input-sm" id="cardRule-name" name="cardRule.name" value="" placeholder="规则名称">
                        </div>
	                    <button id="btn-cardRule-search" type="button" class="btn btn-info btn-sm no-border">
	                    	<i class="ace-icon fa fa-search bigger-110"></i>查询
	                    </button>
	                    <div class="form-group pull-right">
                    		<span>查询方式：</span>
                           	<label class="radio-inline">
                           		<input type="radio" name="searchType" value="1" checked="checked"/>精确
                           	</label>
                           	<label class="radio-inline">
                           		<input type="radio" name="searchType" value="0"/>模糊
                           	</label>
                        </div>
                    </form>
                </div>
            </div>
        </div>
		<!-- 数据表格 -->
        <div class="row">
            <div class="col-xs-12">
            	<div id="table-cardRule-toolbar">
            		<div class="btn-group btn-group-sm">
	                    <button id="viewcardRule" class="btn btn-purple btn-sm no-border" >
	                        <i class="ace-icon fa  fa-eye bigger-110 "></i>查看
	                    </button>
	                    <button id="addcardRule" class="btn btn-info btn-sm no-border" 
	                    onclick="goAdd('新增卡规则', 'mnui/ai/cardRule/add', 'table-cardRule');">
	                        <i class="ace-icon fa fa-plus bigger-110"></i>新增
	                    </button>
	                    <button id="editcardRule" class="btn btn-success btn-sm no-border"
	                    onclick="goUpdate('编辑卡规则', 'mnui/ai/cardRule/edit', 'table-cardRule');">
	                        <i class="ace-icon fa fa-pencil-square-o bigger-110"></i>编辑
	                    </button>
	                    <button id="delcardRule" class="btn btn-danger btn-sm no-border"
	                    onclick="doDels('mnui/ai/cardRule/deletes', 'table-cardRule');">
	                        <i class="ace-icon fa fa-trash-o bigger-110"></i>删除
	                    </button>
                    </div>
                </div>
            	<table id="table-cardRule" 
            			data-toolbar="#table-cardRule-toolbar" 
            			data-sort-name="level" 
            			data-sort-order="asc"
            			data-show-columns="true"
            			data-id-field="uuid">
            		 <thead>
                        <tr>
                            <th data-field="state" data-checkbox="true"></th>
                            <th data-width="80" data-field="name" data-align="left" data-sortable="true">规则名称</th>
                            <th data-width="120" data-field="regexp" data-align="left" data-sortable="false">规则匹配表达式</th>
                            <th data-width="160" data-field="level" data-align="left" data-sortable="false">优先级</th>
                            <th data-field="portalid" data-align="left" data-visible="false">绑定门户标识</th>
                            <th data-field="portalName" data-align="left" data-sortable="true">绑定门户名称</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	initTableList('table-cardRule','mnui/ai/cardRule/dataGrid', 'table-cardRule-search', 'btn-cardRule-search');
});
</script>
